package com.cskaoyan.bean.wx.vo;

import com.cskaoyan.bean.Goods;
import lombok.Data;

import java.util.List;
import java.util.Objects;

@Data
public class WxFloorGoodsListVo {
    String name;
    List<Goods> goodsList;
    Integer id;

    public WxFloorGoodsListVo() {
    }

    public WxFloorGoodsListVo(String name, List<Goods> goodsList, Integer id) {
        this.name = name;
        this.goodsList = goodsList;
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        WxFloorGoodsListVo that = (WxFloorGoodsListVo) o;
        return Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }
}
